package com.example.quartz.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Date;

public class FirstJob implements Job {
    Logger log = LoggerFactory.getLogger(FirstJob.class);

    public FirstJob() {

    }

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        log.info("First Job执行时间: " + new Date());

    }
}  
